package com.sunda.spmsorder.service.impl;

import com.sunda.spmsorder.entity.MaterialSapWerksRelation;
import com.sunda.spmsorder.mapper.MaterialSapWerksRelationMapper;
import com.sunda.spmsorder.service.IMaterialSapWerksRelationService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 物料工厂关系表 服务实现类
 * </p>
 *
 * @author Wayne
 * @since 2021-05-27
 */
@Service
public class MaterialSapWerksRelationServiceImpl extends ServiceImpl<MaterialSapWerksRelationMapper, MaterialSapWerksRelation> implements IMaterialSapWerksRelationService {

    /** 新增物料工厂关系表，触发器会在新增前自动删除已有数据 */
    @Override
    public int insertMaterialWerksRelation(MaterialSapWerksRelation materialSapWerksRelation) {
        return this.baseMapper.insert(materialSapWerksRelation);
    }
}
